package impl

import (
	"gitee.com/go-kade/go12/vblog/apps/blog"
	"gitee.com/go-kade/go12/vblog/conf"
	"gitee.com/go-kade/go12/vblog/ioc"
	"gorm.io/gorm"
)

func init() {
	ioc.Controller().Registry(&BlogServiceImpl{})
}

// var _ blog.Service = (*BlogServiceImpl)(nil)

type BlogServiceImpl struct {
	db *gorm.DB
}

func (i *BlogServiceImpl) Init1() error {
	i.db = conf.C().MySQL.GetConn().Debug()
	return nil
}
func (*BlogServiceImpl) Name() string {
	return blog.AppName
}
